package com.pj.wisdomlogistics.mvp.contract;


import com.pj.wisdomlogistics.entity.response.MealDetailInfo;
import com.pj.wisdomlogistics.mvp.frame.base.BasePresenter;
import com.pj.wisdomlogistics.mvp.frame.base.BaseView;

import java.io.File;


public interface MealDetailContract {
    public interface View extends BaseView {
        public void onError(String errorMsg);

        public void onSuccess(MealDetailInfo mInfo);

        public void onSignSuccess();

        public void onReviewSuccess();

        public void onFinishSuccess();

        public void onUndoSuccess();

    }

    public interface Presenter extends BasePresenter {
        public void findDiningApplyDetail(int diningApplyID);

        public void diningApplySign(String userID,
                                    int diningApplyID,
                                    File sign,
                                    int state,
                                    String comment);

        public void diningApplySign2(String userID,
                                     int diningApplyID,
                                     File sign,
                                     int state,
                                     String comment);

        public void diningApplyReview(String userID,
                                      int diningApplyID,
                                      String state,
                                      String comment);

        public void diningApplyFinish(String userID,
                                      int diningApplyID,
                                      String state,
                                      String comment ,
                                      String room);
        public void cancelDiningApply(
                int diningApplyID
        );

    }
}
